package comday04.itheima01;

public class Demo05 {
    public static void main(String[] args) {

        int[] arr = new int[5];

        //给数组元素赋值
        arr[1] = 10;
        arr[3] = 20;

        //遍历
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
